var http = require('http');

http.createServer(function (request,response) {

    console.log(request);
    response.write("hello");
    response.end(" world");

}).listen(3000)

console.log("the server is running on port 3000");